<script>
	$(function() {			
		sagapo.section_class_change('menu');
		
		// 게시물 신규 추가.
		$("section.section .btn_right a.writes").click(function() {
			
			var href = $(this).attr("href");
			if(href) {
				loadDialogForm(href, null, $(this).text(), 600, 300, null, 'create');
			} else {
				alert("링크가 존재하지 않습니다.");
			}
			
			return false;
		});
	});
</script>

<div class="list_container">
	<ul class="list">
		{? list}
			{@ list}
		<li>
			<a href="{action}/view/{.value_->mn_seq}" class="article">
				<div class="title"> 
					<h3>
						<img src="{CFG->PATH->IMAGE}/iconset/{.value_->mn_icon}" alt="{list->mn_name}" title="{list->mn_name}" />
						{list->mn_name}
						{? .value_->mn_external}
						<img src="{CFG->PATH->IMAGE}/icons/application_double.png" alt="새창" title="새창" />
						{/}
					</h3>
				</div>
				<div class="description">
					<p class="link">
						{? .value_->mn_external}
							{.value_->mn_url}
						{:}
							{CFG->PATH->WWW}{.value_->mn_url}
						{/}
					</p>
				</div>
			</a>
		</li>
			{/}
		{:}
		<li class="no_list"> 등록된 메뉴가 없습니다. </li>
		{/}
	</ul>
	<div class="list_footer">
		<div class="btn_right">
			<a href="{action}/add" class="icon_button writes">메뉴추가</a>
		</div>
	</div>
</div>
